// 获取空间下拉数据
// const getTenantSelection = {
//     uri: '/wand-rest/webSelection/getTenantSelection',
//     queries: null,
//     method: 'post',
//     message: false,
//     data: null
// }

 // 用户列表
const wandUserList = {
    uri: '/wand-rest/wandAccount/list',
    queries: null,
    method: 'post',
    message: false,
    data: {
        clientId: false,
        id: false,
        loginName: false,
        mobile: false,
        pageIndex: false,
        pageSize: false,
        yn: false
    },
    options: {
        // requestFreezingTime: 400,
        allowDupRequest: true
    }
}

// 添加用户
const wandAddUser = {
    uri: '/wand-rest/wandAccount/create',
    queries: null,
    method: 'post',
    message: false,
    data: {
        loginName: true,
        userName: false,
        pwd: true,
        mobile: true,
        yn: false,
        comments: false
    }
}

// 编辑用户
const wandEditUser = {
    uri: '/wand-rest/wandAccount/update',
    queries: null,
    method: 'post',
    message: false,
    data: {
        userId: true,
        loginName: true,
        userName: false,
        pwd: false,
        mobile: true,
        yn: false,
        comments: false
    }
}

// 修改密码
const changePassword = {
    uri: '/wand-rest/wandAccount/changePassword',
    type: 'HttpPortal',
    method: 'post',
    queries: null,
    data: {
        oldPassword: true, // 旧密码
        password: true // 新密码
    }
}

// 获取品牌列表
const getBrandSelection = {
    uri: '/wand-rest/webSelection/getBrandSelection',
    queries: null,
    method: 'post',
    message: false,
    data: {
        tenant: true
    },
    options: {
        allowDupRequest: true // 允许重复请求
    }
}
// 前台用户修改密码
const wandChangePassword = {
    uri: '/wand-rest/teacher/changePassword',
    method: 'post',
    queries: null,
    data: {
        userId: true,
        password: true
    }
}

export default {
    // getTenantSelection,
    wandUserList,
    wandAddUser,
    wandEditUser,
    changePassword,
    getBrandSelection,
    wandChangePassword
};